package Cani;
public class Nod {
	protected int x,y,nivel;
	String expandabil;
	
	public Nod(int x,int y){
	setX(x);
	setY(y);
	}
	public Nod(int x,int y,int nivel){
		setX(x);
		setY(y);
		setNivel(nivel);
	}
	public Nod(int x,int y,int nivel,String expandabil){
		setX(x);
		setY(y);
		setNivel(nivel);
		setExpandabil(expandabil);
	}
	public Nod(Nod copy){
		this(copy.getX(),copy.getY(),copy.getNivel(),copy.getExpandabil());
	}
	public int getNivel() {
		return nivel;
	}
	public void setNivel(int nivel) {
		this.nivel = nivel;
	}
	public String getExpandabil() {
		return expandabil;
	}
	public void setExpandabil(String expandabil) {
		this.expandabil = expandabil;
	}
	
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public String toString(){
		return "( "+getX()+" , "+getY()+" )";
	}
}
